import React from "react";
// import { connect } from "react-redux";

// import { ACTION_ADD, ACTION_PINGFANG } from '../actions/actions.js'



const Hamesome = (props) => {
  // const { num, des, add, del, pingfang } = props;  // 对象解构props对象
  return (
    <div className="Example" id="my-element">
      <p style={{ color: "HotPink", fontSize: 18 }} onClick={() => alert('cyhuijh')}>点击查看:the handsome boy is</p>
    </div>
  );
}

// const mapStateToProps = (state) => {
//   return {
//     num: state.num,
//     des: state.des
//   }
// }
// const mapDispatchToProps = (dispatch) => {
//   return {
//     add: () => { dispatch(ACTION_ADD(2)); console.log('+2') },
//     del: () => { dispatch(ACTION_ADD(-2)); console.log('-2') },
//     pingfang: () => dispatch(ACTION_PINGFANG)
//   }
// }

// export default connect(mapStateToProps, mapDispatchToProps)(Contain);
export default Hamesome